import React from 'react'
import {useLoaderData,useParams,useLocation,useNavigate} from 'react-router-dom'
const Details:React.FC = () => {
  // console.log(useParams());
  // console.log(useLocation());
  const navigate = useNavigate()
  function click(){
    navigate('a')
  }
  function click2(){
    navigate('/home/formtest')
  }
  return (
    <div>
      <div onClick={click}>详情嵌套页</div>
      <div onClick={click2}>去表单页</div>
    </div>
  )
}
export default Details